<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <head>
        <link
          rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
        />
        
      </head>

  </head>
  <body>
    <div id="app"></div>
  </body>
  <script src="https://unpkg.com/vue@next"></script>
  <script>
    const app = Vue.createApp({
      data() {
        return {
          isShow: true,
        };
      },
      methods: {
        handleClick() {
          this.isShow = !this.isShow;
        },
      },
      template: `
        <div>
            <transition name="hello" appear>
                <div v-show="isShow">hello Vue1.js!</div>
            </transition>
            <transition name="hello1" appear>
                <div v-show="isShow">Hello Vue2.js!</div>
            </transition>
            <button @click="handleClick">切换</button>
        </div>`,
    });
    const vm = app.mount("#app");
  </script>
</html>
